tanh
Hyperbolic tangent
tanh()
function returns a hyperbolic tangent.
In this example, we will return a hyperbolic tangent for different numbers:
<?php echo ( tanh ( M_PI_4 ) ) ; echo ( tanh ( 0.50 ) ) ; echo ( tanh ( - 0.50 ) ) ; echo ( tanh ( 5 ) ) ; echo ( tanh ( 10 ) ) ; echo ( tanh ( - 5 ) ) ; echo ( tanh ( - 10 ) ) ?>
Try it yourself
tanh ( x )
parameter | describe |
---|---|
x | Required. A number. |
Returns the hyperbolic tangent value of x , defined as sinh(arg)/cosh(arg).